package com.itheima.mybatis02.dao;

import com.itheima.mybatis01.bean.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface TeacherMapper {
    List<Teacher> selectAll();

    Teacher selectOne(Integer id);

    int insert(Teacher teacher);

    int update(Teacher teacher);

    int delete(Integer id);

    Teacher findByTeacherNameAndAge(@Param("name") String name , @Param("age") Integer age);

    Teacher selectCondition(Teacher teacher);

    Teacher selectCondition2(Teacher teacher);

    List<Teacher> selectById(List<Integer> list);

    List<Teacher> selectById1(List<Integer> list);

}
